require(["jquery","bbcare",
    "scprit/followup/app/prematureOvarianFailure/prematureOvarianFailureList.servers.js",
    "scprit/followup/app/prematureOvarianFailure/prematureOvarianFailureList.ui.js",
    "scprit/followup/app/prematureOvarianFailure/prematureOvarianFailureList.event.js"],function($,$bb,$servers,$ui,$event){
    $event.searchFn(1,16);
    $(".searchConditions").on("input propertychange","#patientName",function(){
        $event.searchFn(1,16);
    });
    $(".searchConditions").on("input propertychange","#phone",function(){
        $event.searchFn(1,16);
    });
    $(".searchConditions").on("change","input[name='time']",function(){
        $event.searchFn(1,16);
    });
    //点击跳转：
    $(".listArea").on("click",".user-card",function(){
        if($(this).attr("userId")){
            $bb.openPage("prematureOvarianFailureDetail",{
                "userId":$(this).attr("userId"),
                "type":$(this).attr("type"),
                "gender":$(this).attr("gender"),
                "userName":$(this).find(".card-name").html(),
                "phoneNo":$(this).find(".card-tel").html()
            });
        }
    });
});